import {BasicColumn} from '/@/components/Table';
import {FormSchema} from '/@/components/Table';
import { rules} from '/@/utils/helper/validator';
import { render } from '/@/utils/common/renderUtils';
import { getWeekMonthQuarterYear } from '/@/utils';
//列表数据
export const columns: BasicColumn[] = [
  {
    title: '创建日期',
    align: "center",
    dataIndex: 'createTime'
  },
  {
    title: '订单id',
    align: "center",
    dataIndex: 'orderId'
  },
  {
    title: '原订单id',
    align: "center",
    dataIndex: 'sourceOrderId'
  },
  {
    title: '分佣金额',
    align: "center",
    dataIndex: 'amount'
  },
  {
    title: '用户id',
    align: "center",
    dataIndex: 'memberId'
  },
  {
    title: '当前等级',
    align: "center",
    dataIndex: 'leve'
  },
  {
    title: '分佣比率',
    align: "center",
    dataIndex: 'fyRatio'
  },
  {
    title: '原分佣总金额',
    align: "center",
    dataIndex: 'beforeAmount'
  },
  {
    title: '现分佣总金额',
    align: "center",
    dataIndex: 'afterAmount'
  },
];

// 高级查询数据
export const superQuerySchema = {
  createTime: {title: '创建日期',order: 0,view: 'datetime', type: 'string',},
  orderId: {title: '订单id',order: 1,view: 'text', type: 'string',},
  sourceOrderId: {title: '原订单id',order: 2,view: 'text', type: 'string',},
  amount: {title: '分佣金额',order: 3,view: 'number', type: 'number',},
  memberId: {title: '用户id',order: 4,view: 'text', type: 'string',},
  leve: {title: '当前等级',order: 5,view: 'text', type: 'string',},
  fyRatio: {title: '分佣比率',order: 6,view: 'number', type: 'number',},
  beforeAmount: {title: '原分佣总金额',order: 7,view: 'number', type: 'number',},
  afterAmount: {title: '现分佣总金额',order: 8,view: 'number', type: 'number',},
};
